package com.aos.erp.schools.model.student;
import com.aos.erp.schools.enums.student.FieldStatus;
import com.aos.erp.schools.enums.student.SubjectType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Auther: chb
 * @Date: 2018/11/2 14:10
 * @Description: 学员成绩表
 */
@Data
@TableName("t_student_field")
public class StudentField implements Serializable {

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    //学员名字
    @TableField("name")
    private String name;

    //考试科目
    @TableField("exam_subject")
    private Integer examSubject;

    //考试车型
    @TableField("exam_car_model")
    private String examCarModel;

    //考试日期
    @TableField("exam_time")
    private Date examTime;

    //考试地点
    @TableField("exam_address")
    private String examAddress;

    //考试成绩
    @TableField("exam_field")
    private String examField;

    //创建时间
    @TableField("created")
    private Date created;

    //考试成绩 合格不合格
    @TableField("field_status")
    private FieldStatus fieldStatus=FieldStatus.noResult;

    //学员id
    @TableField("student_id")
    private Long studentId;

    @TableField("driver_id")
    private long driverId;

    //考试次数
    @TableField("degree")
    private Long degree;

    //上一科 考试时间
    @TableField("last_time_exam")
    private Long lastTimeExam;

    public String getFieldStatusName() {
        return fieldStatus.getDesc();
    }

}
